package com.qxl.forest.business.persistence.dao;

import com.qxl.forest.business.persistence.entity.Role;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: qiuxinlin
 * @Dercription:
 * @Date: 19:16 2017/11/23
 */
@Repository
public interface RoleDao extends PagingAndSortingRepository<Role, Integer> {
    /**
     * 通过pid查找角色
     *
     * @param pid
     * @return
     */
    List findByPid(Integer pid);
}
